from Data import general
from Data import search_file
from docx import Document

if __name__ == '__main__':
    close_revision = True
    accept_revision = True
    delete_annotations = True
    filepaths = search_file.select_folder()
    for file in filepaths:
        document = Document(file)
        if close_revision:
            general.close_revision(document)
        if accept_revision:
            general.accept_revision(document)
        if delete_annotations:
            general.delete_annotations(document)
